package com.kuang.single;

/**
 * @program: juc
 * @description: 静态内部类
 * @author: 陈恩涛
 * @create: 2021-03-25 17:15
 **/
public class Holder {

    private Holder() {

    }

    public static Holder getInstance() {
        return InnerClass.HOLDER;
    }

    public static class InnerClass {
        private static final Holder HOLDER = new Holder();
    }

}
